home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
BUTTONS
/
MOVBUT10
/
BUTNCODE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-07-17
|
2KB
|
68 lines
unit Butncode;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls, movbut, Buttons;
type
TButtonObject = class(TForm)
Bevel1: TBevel;
Label1: TLabel;
Panel1: TPanel;
Panel3: TPanel;
Panel2: TPanel;
BitBtn1: TBitBtn;
{MovingButton1: TMovingButton;
MovingButton2: TMovingButton;
MovingButton3: TMovingButton;}
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
MovingButton1, MovingButton2, MovingButton3: TMovingButton;
end;
var
ButtonObject: TButtonObject;
implementation
{$R *.DFM}
procedure TButtonObject.FormCreate(Sender: TObject);
begin
{ These routines are only necessary if the TMovingButton has not
been registered with Delphi yet because they manually set up the
class. Otherwise, this sample application would not need any code. }
MovingButton1:= TMovingButton.Create(Self);
MovingButton1.Parent:=Panel1;
with MovingButton1 do begin
width:=79;
height:=29;
kind:=bkOK;
MoveInterval:=100;
end;
MovingButton2:= TMovingButton.Create(Self);
MovingButton2.Parent:=Panel2;
with MovingButton2 do begin
width:=79;
height:=29;
kind:=bkClose;
end;
MovingButton3:= TMovingButton.Create(Self);
MovingButton3.Parent:=Panel3;
with MovingButton3 do begin
width:=79;
height:=29;
kind:=bkHelp;
end;
end;
end.